import siteSettingPage from "@/view/manngger-main/siteSettingPage";
import {globalValue} from "@/config/globalconfig";
import apiDoc from "@/view/manngger-main/apiDoc";
import classPage from "@/view/manngger-main/classPage";
import docPage from "@/view/doc-main/docPage";
import ariticlePublishPage from "@/view/doc-main/docPublishPage";
import docUpdatePage from "@/view/doc-main/docUpdatePage";
import docDirectPage from "@/view/docdirect-admin/docDirectPage";
import docGarbagePage from "@/view/doc-main/docGarbagePage";
import userPage from "@/view/user-admin/userPage";
import logPage from "@/view/log/logPage";

export const adminMain=[
    {
        path:'/loginfo',
        component:logPage,
        meta:{
            title:globalValue.protectTitle()+'日志记录',
            mustLogin:true
        }
    },
    {
        path:'/settingPage',
        component:siteSettingPage,
        meta:{
            title:globalValue.protectTitle()+'站点设置',
            mustLogin:true
        }
    },
    {
        path:'/apidoc',
        component:apiDoc,
        meta:{
            title:globalValue.protectTitle()+'API文档',
            mustLogin:true,
            mustAdmin:true
        }
    },
    {
        path:'/classPage',
        component:classPage,
        meta:{
            title:globalValue.protectTitle()+'分类管理',
            mustLogin:true,
            mustAdmin:true
        }
    },
    {
        path:'/docPage',
        component:docPage,
        meta:{
            title:globalValue.protectTitle()+'智库DOC管理',
            mustLogin:true
        }
    },
    {
        path:'/docPublish',
        component:ariticlePublishPage,
        meta:{
            title:globalValue.protectTitle()+'智库DOC发布',
            mustLogin:true
        }
    },
    {
        path:'/docUpdate',
        component:docUpdatePage,
        meta:{
            title:globalValue.protectTitle()+'智库DOC修改',
            mustLogin:true
        }
    },
    {
        path:'/docDirectPage',
        component:docDirectPage,
        meta:{
            title:globalValue.protectTitle()+'智库DOC分类管理',
            mustLogin:true,
            mustAdmin:true
        }
    },
    {
        path:'/docGarbagePage',
        component:docGarbagePage,
        meta:{
            title:globalValue.protectTitle()+'智库DOC回收站管理',
            mustLogin:true
        }
    },
    {
        path:'/userPage',
        component:userPage,
        meta:{
            title:globalValue.protectTitle()+'用户管理',
            mustLogin:true,
            mustAdmin:true
        }
    }
]